<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  .div1 {
    width: 200px;
    height: 200px;
    background: pink ;
    transition: width 2s, height 2s ;
  }
  .div1:hover
{
	width:500px;
	height:500px;
}
</style>
<body>
  <div class="div1"></div>


  
</body>
</html>